<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->config->item('charset');?>">
        <title>留言</title>
        <script language='javascript'>
            function CheckSubmit()
            {
                if(document.form1.title.value=="")
                    {
                    document.form1.title.focus();
                    alert("网址不能为空！");
                    return false;
                }
                if(document.form1.body.value=="")
                    {
                    document.form1.body.focus();
                    alert("网站名称不能为空！");
                    return false;
                }
                return true;
            }
            
        </script>

        <link href="<?php echo base_url();?>public/css/base.css" rel="stylesheet" type="text/css">
    </head>
    <body leftmargin='8' topmargin='8'>
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
            <tr>
                <td height="28" background="<?php echo base_url();?>public/images/tbg.gif" style="padding-left:10px;"><b><a href="friendlink_main.php"><u>留言管理</u></a></b>&gt;&gt;查看留言</td>
            </tr>
            <tr>
                <td height="200" bgcolor="#FFFFFF" valign="top">
                    <form action="<?php echo site_url("home/message/save"); ?>" method="post" name="form1" onSubmit="return CheckSubmit();";>
                    <input type="hidden" name="dopost" value="add" />
                    <table width="80%"  border="0" cellspacing="1" cellpadding="3">
                        <tr>
                            <td width="19%" height="25">标题：</td>
                            <td width="81%">
                                <input name="title" type="text" id="title" value="" size="30" class='pubinputs' />
                            </td>
                        </tr>
                        <tr>
                            <td height="25">称呼：</td>
                            <td>
                                <input name="appellation" type="text" id="appellation" size="30" class='pubinputs' />
                            </td>
                        </tr>
                        <tr>
                            <td width="19%" height="25">邮箱：</td>
                            <td width="81%">
                                <input name="email" type="text" id="email" value="" size="30" class='pubinputs'/>
                              
                            </td>
                        </tr>
                        <tr>
                            <td height="25">个人主页：</td>
                            <td>
                               <input name="profile" type="text" id="profile" size="30" class='pubinputs' />
                            </td>
                        </tr>

                        <tr>
                            <td height="25">联系电话：</td>
                            <td> <input name="phone" type="text" id="phone" size="30" class='pubinputs' /></td>
                        </tr>
                        <tr>
                            <td height="25">内容：</td>
                            <td><textarea name="body" cols="50" rows="5" id="body"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td height="25">用户IP：</td>
                            <td>
                              
                            </td>
                        </tr>
                        <tr>
                            <td height="25">留言时间：</td>
                            <td>
                            
                            </td>
                        </tr>
                        <tr>
                            <td height="51">&nbsp;</td>
                            <td>
                                <input type="submit" name="Submit" value=" 提 交 " class="coolbg np" />　 　
                                <input type="reset" name="Submit" value=" 重 置 " class="coolbg np" />
                            </td>
                        </tr>
                    </table>
                    </form>
                </td>
            </tr>
        </table>
    </body>
</html>